<?php
/**
 * Created by PhpStorm.
 * User: 17274
 * Date: 2018/3/28
 * Time: 14:21
 */

namespace app\admin\controller;


use app\admin\model\LogsModel;
use think\Request;

class Logs extends Base
{
    protected $logsModel;


    /*
     * 依赖注入Model
     * */
    public function __construct(LogsModel $logsModel){
        parent::__construct();
        $this->logsModel = $logsModel;

    }

    /*
     * 角色列表
     * */
    public function logs_index(){
        $this->assign("data",$this->logsModel->listAll());
        return $this->fetch('logs/index');
    }

}